﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management.master" AutoEventWireup="true" 
EnableEventValidation="false" CodeFile="usersummary_report.aspx.cs" Inherits="management_User_usersummary_report" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td>
                    <h1>GG User Summary</h1>
                </td>
            </tr>
            <tr>
                <td>
                    <b>Summary Type</b> :
                    <asp:DropDownList ID="ddlSummaryType" runat="server">
                        <asp:ListItem Value="All">All</asp:ListItem>
                        <asp:ListItem Value="ULG">User Login</asp:ListItem>
                        <asp:ListItem Value="URG">User Registration</asp:ListItem>
                        <asp:ListItem Value="CRV">Car Result View</asp:ListItem>
                    </asp:DropDownList>&nbsp;
                    <b>Report Type</b> :
                    <asp:DropDownList ID="ddlReportType" runat="server" AutoPostBack="true" 
                        onselectedindexchanged="ddlReportType_SelectedIndexChanged">
                        <asp:ListItem Value="0">Monthly</asp:ListItem>
                        <asp:ListItem Value="1" Selected="True">Daily</asp:ListItem>
                        <asp:ListItem Value="2">Customize</asp:ListItem>
                    </asp:DropDownList>&nbsp;
                    <b><asp:Label ID="lblFromDate" runat="server"></asp:Label></b>
                    <asp:DropDownList ID="ddlDay1" runat="server" ToolTip="Choose Day">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                        <asp:ListItem Value="13">13</asp:ListItem>
                        <asp:ListItem Value="14">14</asp:ListItem>
                        <asp:ListItem Value="15">15</asp:ListItem>
                        <asp:ListItem Value="16">16</asp:ListItem>
                        <asp:ListItem Value="17">17</asp:ListItem>
                        <asp:ListItem Value="18">18</asp:ListItem>
                        <asp:ListItem Value="19">19</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="21">21</asp:ListItem>
                        <asp:ListItem Value="22">22</asp:ListItem>
                        <asp:ListItem Value="23">23</asp:ListItem>
                        <asp:ListItem Value="24">24</asp:ListItem>
                        <asp:ListItem Value="25">25</asp:ListItem>
                        <asp:ListItem Value="26">26</asp:ListItem>
                        <asp:ListItem Value="27">27</asp:ListItem>
                        <asp:ListItem Value="28">28</asp:ListItem>
                        <asp:ListItem Value="29">29</asp:ListItem>
                        <asp:ListItem Value="30">30</asp:ListItem>
                        <asp:ListItem Value="31">31</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth1" runat="server"> 
                        <asp:ListItem Value="01">Jan</asp:ListItem>
                        <asp:ListItem Value="02">Feb</asp:ListItem>
                        <asp:ListItem Value="03">Mar</asp:ListItem>
                        <asp:ListItem Value="04">Apr</asp:ListItem>
                        <asp:ListItem Value="05">May</asp:ListItem>
                        <asp:ListItem Value="06">Jun</asp:ListItem>
                        <asp:ListItem Value="07">Jul</asp:ListItem>
                        <asp:ListItem Value="08">Aug</asp:ListItem>
                        <asp:ListItem Value="09">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlYear1" runat="server">
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                    </asp:DropDownList>
                        <b><asp:Label ID="lblToDate" runat="server"></asp:Label></b>
                    <asp:DropDownList ID="ddlDay2" runat="server" ToolTip="Choose Day">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                        <asp:ListItem Value="13">13</asp:ListItem>
                        <asp:ListItem Value="14">14</asp:ListItem>
                        <asp:ListItem Value="15">15</asp:ListItem>
                        <asp:ListItem Value="16">16</asp:ListItem>
                        <asp:ListItem Value="17">17</asp:ListItem>
                        <asp:ListItem Value="18">18</asp:ListItem>
                        <asp:ListItem Value="19">19</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="21">21</asp:ListItem>
                        <asp:ListItem Value="22">22</asp:ListItem>
                        <asp:ListItem Value="23">23</asp:ListItem>
                        <asp:ListItem Value="24">24</asp:ListItem>
                        <asp:ListItem Value="25">25</asp:ListItem>
                        <asp:ListItem Value="26">26</asp:ListItem>
                        <asp:ListItem Value="27">27</asp:ListItem>
                        <asp:ListItem Value="28">28</asp:ListItem>
                        <asp:ListItem Value="29">29</asp:ListItem>
                        <asp:ListItem Value="30">30</asp:ListItem>
                        <asp:ListItem Value="31">31</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth2" runat="server"> 
                        <asp:ListItem Value="01">Jan</asp:ListItem>
                        <asp:ListItem Value="02">Feb</asp:ListItem>
                        <asp:ListItem Value="03">Mar</asp:ListItem>
                        <asp:ListItem Value="04">Apr</asp:ListItem>
                        <asp:ListItem Value="05">May</asp:ListItem>
                        <asp:ListItem Value="06">Jun</asp:ListItem>
                        <asp:ListItem Value="07">Jul</asp:ListItem>
                        <asp:ListItem Value="08">Aug</asp:ListItem>
                        <asp:ListItem Value="09">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlYear2" runat="server">
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                    </asp:DropDownList>
                    <div style="display: none">
                        <asp:TextBox ID="txtReportDate1" runat="server"></asp:TextBox>
                        <asp:TextBox ID="txtReportDate2" runat="server"></asp:TextBox>
                    </div>
                    &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
                    <span class="admin_gridstyle" style="float:right; padding-right:5px">
                        <asp:HyperLink Visible="false" ID="hplPrint" NavigateUrl="" Target="_blank" runat="server"><img src="images/icons/icon_print.png" alt="print preview" /></asp:HyperLink>
                    </span>
                </td>
            </tr>
            <div id="divError">
                <tr>
                    <td align="left"><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></td>
                </tr>
            </div>
            <tr id="trResultCount" runat="server">
                <td>
                    <div class="left"><span class="h">Car Results viewd User Summary</span></div>
                    <div class="clear"></div>
                    <asp:GridView ID="grvResultCount" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        CellPadding="2" CssClass="admin_gridstyle" EmptyDataText="There are no data records to display."
                        GridLines="None" Width="30%">
                        <FooterStyle />
                        <PagerStyle />
                        <Columns>
                            <asp:BoundField DataField="Description" HeaderText="Description" />
                            <asp:BoundField DataField="ResultCount" HeaderText="Result Count" />
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="admin_gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="admin_gridodd" />
                        <RowStyle CssClass="admin_grideven" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width:100%;">
                    <div id="divULG" runat="server" class="w30p left pad_r20px">
                        <div class="left"><span class="h">User Login</span></div>
                        <div class="right pad_r20px font_13px"><asp:Label ID="lblLoginRecordCount" runat="server"></asp:Label></div>
                        <div class="clear"></div>
                        <asp:GridView ID="grvLoginSummary" runat="server" AutoGenerateColumns="False" 
                            Cellspacing="3" CellPadding="3" Width="100%" CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" 
                            EmptyDataText="There are no data records to display." GridLines="None" 
                            DataKeyNames="LoginDate" onrowdatabound="grvLoginSummary_RowDataBound"> 
                            <Columns>

                                <asp:BoundField DataField="LoginDate" HeaderText="Login Date" SortExpression="LoginDate" />
                                <asp:BoundField DataField="RecordCount" HeaderText="No of Login" SortExpression="RecordCount" />
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle CssClass="admin_gridheader" />
                            <EditRowStyle />
                            <AlternatingRowStyle CssClass="admin_gridodd" />
                            <RowStyle CssClass="admin_grideven" />
                        </asp:GridView>
                        <div class="w195px left font_13px"><asp:Label ID="lblLoginCount" runat="server" Text="Total No of Login" Font-Bold="true"></asp:Label></div>
                        <div class="left font_13px"><asp:Label ID="lblLoginTotalCount" runat="server"></asp:Label></div>
                    </div>
                    <div id="divURG" runat="server" class="w30p left pad_r20px">
                        <div class="left"><span class="h">User Registration</span></div>
                        <div class="right pad_r20px font_13px"><asp:Label ID="lblRegisterRecordCount" runat="server"></asp:Label></div>
                        <div class="clear"></div>
                        <asp:GridView ID="grvRegisterSummary" runat="server" AutoGenerateColumns="False" 
                            Cellspacing="3" CellPadding="3" Width="100%" CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" 
                            EmptyDataText="There are no data records to display." GridLines="None" 
                            DataKeyNames="RegistrationDate" onrowdatabound="grvRegisterSummary_RowDataBound"> 
                            <Columns>

                                <asp:BoundField DataField="RegistrationDate" HeaderText="Registration Date" SortExpression="RegistrationDate" />
                                <asp:BoundField DataField="RecordCount" HeaderText="No of Registration" SortExpression="RecordCount" />
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle CssClass="admin_gridheader" />
                            <EditRowStyle />
                            <AlternatingRowStyle CssClass="admin_gridodd" />
                            <RowStyle CssClass="admin_grideven" />
                        </asp:GridView>
                        <div class="w195px left font_13px"><asp:Label ID="lblRegisterCount" runat="server" Text="Total No of Registration" Font-Bold="true"></asp:Label></div>
                        <div class="left font_13px"><asp:Label ID="lblRegisterTotalCount" runat="server"></asp:Label></div>
                    </div>
                    <div id="divCRV" runat="server" class="w30p left pad_r20px">
                        <div class="left"><span class="h">Car Result View</span></div>
                        <div class="right pad_r20px font_13px"><asp:Label ID="lblCRVRecordCount" runat="server"></asp:Label></div>
                        <div class="clear"></div>
                        <asp:GridView ID="grvCarResultViewSummary" runat="server" AutoGenerateColumns="False" 
                            Cellspacing="3" CellPadding="3" Width="100%" CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" 
                            EmptyDataText="There are no data records to display." GridLines="None" 
                            DataKeyNames="CRVDate" onrowdatabound="grvCarResultViewSummary_RowDataBound"> 
                            <Columns>

                                <asp:BoundField DataField="CRVDate" HeaderText="Car Result Viewed Date" SortExpression="CRVDate" />
                                <asp:BoundField DataField="RecordCount" HeaderText="No of Car Result Viewed" SortExpression="RecordCount" />
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle CssClass="admin_gridheader" />
                            <EditRowStyle />
                            <AlternatingRowStyle CssClass="admin_gridodd" />
                            <RowStyle CssClass="admin_grideven" />
                        </asp:GridView>
                        <div class="w195px left font_13px"><asp:Label ID="lblCRVCount" runat="server" Text="Total No of Viewed" Font-Bold="true"></asp:Label></div>
                        <div class="left font_13px"><asp:Label ID="lblCRVTotalCount" runat="server"></asp:Label></div>                                                                                        
                    </div>
                </td>
            </tr>
        </table>
   </div>
</asp:Content>

